# coding=utf-8
"""
Created on 2018年8月9日
"""

from alivedb_base.nosql.mongo_engine import MongoEngine
from util_base.ufo_decorators import db_operator


class MongoHelp(MongoEngine):
    """
    MongoTest
    """
    database = 'help'
    
    def __init__(self, *args, **kwargs):
        self.db_name = 'help'
        MongoEngine.__init__(self, *args, **kwargs)

    @db_operator
    def test(self):
        table_name = 'user_info'
        return self.query_one(table_name, {})
